<?php

namespace App\Transformers\Identity;

use App\Models\IdentityModel;
use League\Fractal\TransformerAbstract;

class IdentityTransformer extends TransformerAbstract
{
    public function transform(IdentityModel $users) {
        return [
            'identity_name'  =>  $users->identity_name,
            'permission_list'=>  $users->permissionList,
        ];
    }

}